package org.bookie.framework.services;

import org.bookie.core.services.impl.Listener.Event;

/**
 * Notification service is used for registering
 * and distributing notifications
 * 
 * @author zubairov
 *
 */
public interface NotificationService {

	/**
	 * Register component for notifications
	 * @param component
	 */
	void registerListener(Object component);
	
	/**
	 * Creates a notification with additional parameter
	 * @param event
	 * @param objects
	 */
	void notifyListeners(Event event, Object...objects);

}
